package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    //新增套餐
    public void add(Setmeal setmeal , Integer [] checkgroupIds);

    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //查询所有的套餐信息
    public List<Setmeal> getFindAllSetmeal();

    //根据id查询套餐信息
    public Setmeal findById(Integer id);

    //根据id删除套餐数据
    public void deleteById(int id);

    //查询套餐名称和套餐人数
    public List<Map> findSetmealByNameAndCount();
}
